package com.gec.service.impl;

import com.gec.dao.JobDao;
import com.gec.dao.impl.JobDaoImpl;
import com.gec.domain.Job;
import com.gec.service.JobService;
import com.gec.utils.PageModel;

import java.util.List;

public class JobServiceImpl implements JobService {
    JobDao dao=new JobDaoImpl();
    @Override
    public void addJob(Job job) {
        dao.addJob(job);
    }

    @Override
    public void updataJob(Job job) {
        dao.updataJob(job);
    }

    @Override
    public void deletejob(int id) {
        dao.deletejob(id);
    }

    @Override
    public List<Job> findAllJob(Job job, PageModel model) {
        return dao.findAllJob(job,model);
    }

    @Override
    public int getTotalJobCount(Job job) {
        return dao.getTotalJobCount(job);
    }

    @Override
    public Job findJobById(int id) {
        return dao.findJobById(id);
    }

    @Override
    public List<Job> findJob(Job job) {
        return dao.findJob(job);
    }

}
